﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using MaxLeaf.Platform.Contract;
using MaxLeaf.Platform.BLLImplementation;
using MaxLeaf.Platform.DataContract;
using CommonsLib.Utility;

namespace MaxLeaf.Platform.BLLServer
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“MtnBSL”。
    public class MtnBSL : BaseBLLServer, IMtn
    {
        IMtn _bll = null;
        public virtual IMtn CurrentBLL
        {
            get
            {
                if (_bll == null)
                {
                    _bll = new MtnBLL();
                }
                return _bll;
            }
        }


        public object Select(object model, int intKeyValue)
        {
             
                return CurrentBLL.Select(model, intKeyValue);
             
            
        }

        public List<object>  SelectDtl(object model, int intForeignKeyValue)
        {
            return CurrentBLL.SelectDtl(model, intForeignKeyValue);
            


        }

        public SelectResult SelectByCond(object model, List<AddInfo> lstAddInfo)
        {
            return CurrentBLL.SelectByCond(model, lstAddInfo);



        }

        public SumResult Sum(object model, List<AddInfo> lstAddInfo)
        {
            return CurrentBLL.Sum(model, lstAddInfo);



        }


        public object Add(object model)
        {
             
                return CurrentBLL.Add(model);
             
            
        }

        public object Update(object model)
        {
             
                return CurrentBLL.Update(model);
             
            
        }

        public bool Delete(object model)
        {
             
                return CurrentBLL.Delete(model);
             
            
        }

        public bool Undelete(object model)
        {

            return CurrentBLL.Undelete(model);


        }
    }
}
